<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>产品名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="module" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>客户经理所得积分:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="customer_point" name="row[customer_point]" value="0" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="weigh" class="control-label col-xs-12 col-sm-2">分销商所得积分:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="distributor_point" name="row[distributor_point]" value="0" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="weigh" class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sort" name="row[sort]" value="0" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="brief" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="brief" name="row[brief]"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-question_template_id" class="control-label col-xs-12 col-sm-2">默认初核模板:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question_template_id" type="text" data-multiple="false" data-source="{:url('/product/admin.question_template/selectpage')}" data-search-field="title" data-show-field="title" data-key-field="id" data-select-to-close-list="false" class="form-control selectpage" data-auto_fill_result="false" data-auto-select-first="false" name="row[question_template_id]" value="{$row['question_template_id'] ? $row['question_template_id'] : ''}" placeholder="关联默认初核模板">
        </div>
    </div>


    <div class="form-group">
        <label for="c-profile_template_id" class="control-label col-xs-12 col-sm-2">默认资料模板:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-profile_template_id" type="text" data-multiple="false" data-source="{:url('/product/admin.profile_template/selectpage')}" data-search-field="title" data-show-field="title" data-key-field="id" data-select-to-close-list="false" class="form-control selectpage" data-auto_fill_result="false" data-auto-select-first="false" name="row[profile_template_id]" value="{$row['profile_template_id'] ? $row['profile_template_id'] : ''}" placeholder="关联默认资料模板">
        </div>
    </div>



    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'正常', '0'=>'下架'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>